Skip to content

Cooldowns - Add CooldownStyle#267

Merged
ItsNature merged 1 commit intoversion/1.2.5from
improvement/cooldown-module
Apr 9, 2026
Merged

Cooldowns - Add CooldownStyle#267
ItsNature merged 1 commit intoversion/1.2.5from
improvement/cooldown-module

Conversation

@ItsNature
Copy link
Copy Markdown
Collaborator

@ItsNature ItsNature commented Apr 1, 2026

Overview

Description:
Allow customization of the visual appearance of the cooldown circle and text colors.

Changes:

  • Add CooldownStyle style field to the Cooldown builder
  • Update resource example with a working resource
  • Bump protos to 0.0.9

Code Example:

public void displayCooldownWithStyleExample(Player viewer) {
    Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(viewer.getUniqueId());

    apolloPlayerOpt.ifPresent(apolloPlayer -> {
        this.cooldownModule.displayCooldown(apolloPlayer, Cooldown.builder()
            .name("book-cooldown")
            .duration(Duration.ofSeconds(30))
            .icon(ItemStackIcon.builder()
                .itemName("BOOK")
                .build())
            .style(CooldownStyle.builder()
                .circleStartColor(ApolloColors.RED)
                .circleEndColor(ApolloColors.GREEN)
                .circleEdgeColor(ApolloColors.DARK_GRAY)
                .textColor(ApolloColors.LIGHT_PURPLE)
                .build())
            .build()
        );
    });
}

Screenshots and/or Videos:
image


Review Request Checklist

  • Your code follows the style guidelines of this project.
  • I have performed a self-review of my code.
  • I have tested this change myself. (If applicable)
  • I have made corresponding changes to the documentation. (If applicable)
  • The branch name follows the projects naming conventions. (e.g. feature/add-module & bugfix/fix-issue)

@ItsNature ItsNature added type: Documentation Documentation improvement or issue type: Enhancement Feature improvement or addition labels Apr 1, 2026
@ItsNature ItsNature mentioned this pull request Apr 1, 2026
@ItsNature ItsNature merged commit d806e8d into version/1.2.5 Apr 9, 2026
2 checks passed
@ItsNature ItsNature deleted the improvement/cooldown-module branch April 9, 2026 21:48
ItsNature added a commit that referenced this pull request Apr 17, 2026
* Deploy as 1.2.5-SNAPSHOT

* Lightweight(JSON): Add serverbound & roundtrip packets examples (#264)

* lightweight(json): add serverbound & roundtrip packets examples

* change wording

* change wording

---------

Co-authored-by: Trentin <25537885+TrentinTheKid@users.noreply.github.com>

* Update license year (#266)

* Team Example Improvements (#265)

* Better team example: filter hidden players, send location & display name only if outside player view distance

* example(team): update default max distance

* Implement CooldownStyle (#267)

* Feature - Server Links (#261)

* Add base ServerLinkModule

# Conflicts:
#	docs/developers/lightweight/protobuf/getting-started.mdx
#	gradle/libs.versions.toml

* server links api (WIP)

* add the json & proto examples

* add markdown docs

* update serverlink docs

* update paths in notification module example

* update server link overview img

* update overview desc

* update component usage docs

* Update version tags to 1.2.5

* Update license year

* Fix conflicts

* Remove extra line

---------

Co-authored-by: TrentinTheKid <25537885+TrentinTheKid@users.noreply.github.com>

* Implement `ModSettingsModule#requestInstalledMods` (#269)

* Sync LunarClient Mods & Options (#270)

* Sync LunarClient Mods & Options

* Update version tags to 1.2.5

---------

Co-authored-by: LunarClient Bot <lc-bot@moonsworth.com>

* Bump to 1.2.5 (#271)

---------

Co-authored-by: Trentin <25537885+TrentinTheKid@users.noreply.github.com>
Co-authored-by: LunarClient Bot <lc-bot@moonsworth.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: Documentation Documentation improvement or issue type: Enhancement Feature improvement or addition

Development

Successfully merging this pull request may close these issues.

3 participants